package com.example.demoapp.brvah.itemProvider;

import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.demoapp.R;
import com.example.demoapp.brvah.bean.MultipleItemBean;

import org.jetbrains.annotations.NotNull;


public class VideoProvider extends BaseItemProvider<MultipleItemBean> {
    @Override
    public int getItemViewType() {
        return MultipleItemBean.TYPE_VIDEO;
    }

    @Override
    public int getLayoutId() {
        return R.layout.provider_video;
    }

    @Override
    public void convert(@NotNull BaseViewHolder baseViewHolder, MultipleItemBean multipleItemBean) {
        baseViewHolder.setText(R.id.title, multipleItemBean.getTitle());
        baseViewHolder.setText(R.id.desc, multipleItemBean.getSubtitle());
    }
}
